package beforeadvice;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("beforeadvice/spring.xml");

        AdminService adminService = (AdminService) context.getBean("adminService");

        //adminService.add("小黑");
        adminService.queryOne("小黑");
        System.out.println(adminService.getClass());
    }
}
